﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第二十八题
//BC30 KiKi和酸奶
//https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb?tpId=107&tqId=33311&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    int m = 0;
    int minute = 0;

    while (scanf("%d %d %d", &n, &minute, &m) != EOF) {
        //喝完的
        while (m > minute) {
            m -= minute;
            n--;
        }

        //正在喝的得减去1
        if (m) {
            printf("%d", n - 1);
        }

        else {
            printf("%d", n);
        }
    }


    return 0;
}